// 完整写法
// class Person {
//   public name: string
//   public age: number

//   constructor(name: string, age: number) {
//     this.name = name
//     this.age = age
//   }
// }

// 简写形式
class Person {
  constructor(
    public name: string,
    public age: number
  ) { }
}